package com.yu.waterstation.app.moudles.ticketorder.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yu.waterstation.common.common.enums.OrderStatus;
import com.yu.waterstation.common.entity.app.TicketOrder;
import org.apache.ibatis.annotations.Update;

public interface TicketOrderMapper extends BaseMapper<TicketOrder> {
    // 取消寝室水票订单
    @Update("update ticket_order set order_status=#{param3} where id=#{param1} and address_id=#{param2} and order_status != param4; ")
    int cancelOrder(Integer orderId, Integer addressId, OrderStatus enum_has_canceled, OrderStatus enum_has_finished);
}
